#include<iostream>
using namespace std;

bool strcmp(char *s,char*t){
    int i=0,j=0;
    for(i=0;s[i]!='\0';i++){

    }
    for(j=0;t[j]!='\0';j++){

    }
    if(i!=j)
        return false;
    else
    {
        for(i=0;i<j;i++){
            if(s[i]!=t[i])
                return false;
        }
        return true;
    }
}

int main(int argc, char *argv[])
{
    char *s,*t;
    while(1)
    {
        cout<<endl;
        cout<<"input string s: ";
        cin>>s;
        cout<<"input string t: ";
        cin>>t;

        if(strcmp(s,t))
            cout<<"s&t is the same"<<endl;
        else cout<<"s&t doesn't match"<<endl;
    }
}
